[Blog] N'utilisez jamais try {} catch {}

Posted on Dot Net Guru See other posts from Dot Net Guru
Published on Mon, 25 Jan 2010 22:12:26 +0100 Indexed on 2010/03/08 5:22 UTC
Read the original article Hit count: 417

Filed under:
C'est en somme le conseil donn? par Karl Seguin sur son blog. Pour lui, l'utilisation du try/catch pour g?rer une exception est une mauvaise pratique : "If an exception happens, you need to know about it. If a truly unexpected exception happens, you're better off (most of the time) crashing than letting the application continue (...) The best way to achieve both is let the exception go unhandled and log the exception in a global exception handler". Pour paraphraser une ?mission c?l?bre, ?a se discute ...

© Dot Net Guru or respective owner

Related posts about Articles